package com.huawei.esdk.uc.device;

import com.huawei.ecs.bin.common.Connection;
import com.huawei.esdk.platform.common.bean.config.DeviceConfig;
import com.huawei.esdk.uc.device.common.U19ClientProvider;

public abstract class AbstractU19Capability
{
    private static U19ClientProvider ucU19Provider;
    
    public static Connection initConn(DeviceConfig deviceConfig, boolean isSSL)
    {
        ucU19Provider = new U19ClientProvider(deviceConfig.getServiceAccessPoint(), deviceConfig.getLoginPwd(), isSSL);
        return ucU19Provider.openConn();
    }
    
    public static U19ClientProvider getUcU19Provider()
    {
        return ucU19Provider;
    }
}
